home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19980901-19981211
/
000383_news@newsmaster….columbia.edu _Thu Dec 3 00:37:53 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id AAA14828
for <kermit.misc@watsun.cc.columbia.edu>; Thu, 3 Dec 1998 00:37:53 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id AAA25317
for kermit.misc@watsun; Thu, 3 Dec 1998 00:37:53 -0500 (EST)
From: Paul Brannan <pbranna@clemson.edu>
Newsgroups: comp.protocols.kermit.misc,comp.terminals
Subject: Escape sequence for scrolling in vi
Date: Wed, 02 Dec 1998 23:36:56 -0500
Organization: Clemson University
Lines: 38
Message-ID: <36661568.60033BF0@clemson.edu>
NNTP-Posting-Host: 172-16-27-150.generic.clemson.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 4.5 [en] (WinNT; I)
X-Accept-Language: en
Path: news.columbia.edu!panix!nntprelay.mathworks.com!newsfeed.cwix.com!208.133.32.2!andromeda.vec.net!finch!hubcap.clemson.edu!not-for-mail
Xref: news.columbia.edu comp.protocols.kermit.misc:9590 comp.terminals:13001
I'm working on a telnet client called Console Telnet. I've got most
escape sequences working for a pseudo-vt100 terminal, and I've even got
roughly 80% vttest compliance. One sequence I haven't implemented is
delete character across multiple lines, since that is rather difficult.
One would think though, that since most vttest tests work, that vi would
work with TERM=vt100. But that is not the case. When I scroll up, vi
sends a sequence similar to the following:
ESC[1;24r ESC[1;1H ESCM ESC1;25r ESC[1;1H blah \n
The spaces aren't really there; I just typed them for readability. Now
I would think that this would mean set scrolling from 1 to 24, then go
to the top of the scrolling region (or is that the top of the screen?),
perform a reverse index, reset the scrolling region to the entire
screen, return to the top of the scrolling region again, and then print
the new line.
ESCI does a reverse line feed; is that the same as reverse index? Is
reverse index supposed to honor scroll regions? How is line 25 supposed
to get changed with this crazy sequence?
I tried investigating Linux source, since that is a fairly decent
terminal emulation, and it appears to set the scroll region with CSI
P0;P1 r from P0-1 to P1. I've been implementing it as P0-1 to P1-1.
When I try using P0-1 to P1, I get strange results when scrolling up.
The sequences sent by vi for scrolling up look like:
ESC[1;24r ESC[24;1H \n ESC[1;25r ESC[24;1H blah \n
I look at this and think that if it is correct to go P0-1 to P1, then
the only way to get scrolling down to work properly is to change the
operation of the line feed. Is a line feed at the beginning of a line
supposed to scroll the current line up or leave it alone?
TIA,
Paul Brannan
pbranna@clemson.edu